<?php include_once $_SERVER['DOCUMENT_ROOT'].'/JuventudeSlz/utils/System.php'; ?>
<?php
session_start();
$usuario_logado = $_SESSION['current_user'];

if($usuario_logado['nivel']!='0')
    System::showSimpleView("painel_admin");
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login</title>

        <!-- FONTES -->
        <link href='http://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css'/>
        <link href='http://fonts.googleapis.com/css?family=Abel|Satisfy' rel='stylesheet' type='text/css'/>

        <link href="../css/estilo2.css" rel="stylesheet" type="text/css"/>
        <link href="../css/formulario.css" rel="stylesheet" type="text/css"/>

        <!-- SCRIPTS-->
        <script src="../script/jquery-1.8.2.min.js"></script>
        <script src="../script/jquery.cycle.all.js"></script>    
        <script src="../script/jquery.validate.min.js"></script> 
        <script src="../script/valida.js"></script>

        <script type="text/javascript">
            $('#header-img').cycle();
        </script>
    </head>
    <body>
        <?php include("layout/topo.php"); ?>
        <div id="page">
            <p> Autenticação necessária</p>
            <div id="page-login">
                <form action="../controller/ControleUsuario.php?code_action=<?php echo md5("valide"); ?>" method="POST" id="form-login">
                    <fieldset style="width: 300px">
                        <legend>Usuário e Senha</legend>
                        <label>Usuário:</label>
                        <input type="text" id="inUser" name="inUser">
                        <br/><br/>
                        <label>Senha:</label>
                        <input type="password" id="inPass" name="inPass">
                    </fieldset>
                    <input type="submit" value="Login!"/>
                </form>
            </div>
        </div>
        <?php include("layout/rodape.php"); ?>
    </body>
</html>
